package start.demo01.datatype;

import org.junit.Test;

import java.math.BigDecimal;

public class BigNumber {
    @Test
    public void t0(){
        String a = "1.000006746014E+13";
        BigDecimal db = new BigDecimal(a);
        System.out.println("科学计数：" + db.toString());
        System.out.println("普通计数：" + db.toPlainString());//Long类型转换时使用
    }
    @Test
    public void t1(){
        System.out.println(Long.parseLong("12.2"));
    }


}
